<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>高阶函数</title>
</head>
<body>
    <script>
    const nums = [10, 20, 111, 222, 444, 40, 50];
    let total = nums.filter(n => n<100).map(n => n*2).reduce((v, n) => v+n);
    console.log(total)

    </script>
</body>
</html>